<script type="text/javascript">
$(function(){
	graficos.init();
	$( "#EstadisticascajaReporteId" ).change(function() {
		buscarpersona();
	});
});
</script>
<div class="box ui-corner-all">
	<?php echo $form->create('Estadisticascaja',array('id'=>'graficosForm','url'=>array('controller'=>'graficos','action'=>'index'))); ?>
	<table class="tablaFormHeader"><?php echo
		'<tr>'
			.'<td>'.$form->label('Grafico.reporte', __('Reporte', true)).' </td>'
			.'<td>'.$form->select('reporte_id',$tipopersonas,null,array('label'=>'false','class'=>'span-4','div'=>false,'error'=>false,'empty'=>__('Todos',true))).'</td>'
			.'<td>'.$form->label('persona', __('Persona', true)).' </td>'
			.'<td><div id="persona">'. $form->hidden('per_id',array('label'=>false)) .
			$form->input('id_persona', array('label'=>false,'div'=>false, 'size'=>'0','class'=>'text ui-widget-content ui-corner-all','readonly'=>true,'disabled'=>true)).'</div></td>'
			.'<td>'.$form->label('Grafico.fecha', __('Fechas', true)).' </td>'
			.'<td colspan="3">&nbsp;De&nbsp;&nbsp;&nbsp;&nbsp;'.$form->input('Grafico.fecha_de', array('label'=>false,'div'=>false, 'size'=>'15', 'class'=>'required ui-widget-content'))
					.'&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;&nbsp;&nbsp;&nbsp;'.$form->input('Grafico.fecha_a', array('label'=>false,'div'=>false, 'size'=>'15', 'class'=>'required ui-widget-content'))
			.' </td>'			
			.'<td class="text_right">'.$form->submit('Buscar', array('id'=>'bt_buscar','div'=>false)).'</td>'
		.'</tr>'; ?>
	</table>
	<?php echo $form->end(); ?>
	</div>
<div id="estdepositos">
</div>